<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<%@ include file="/WEB-INF/common/header.jsp"%>

<div class="layui-fluid">

	<form class="layui-form" isLoad="${empty bean ? 0 : 1}">
	  
	<c:if test="${not empty bean }">
	  <div class="layui-form-item">
	    <label class="layui-form-label">主键：</label>
	    <div class="layui-input-block">
	    	<div class="layui-form-mid layui-word-aux">${bean.id }</div>
	      	<input type="hidden" name="id" />
	    </div>
	  </div>
	  
	  <hr>
	</c:if>
	  
	  <div class="layui-form-item layui-form-text">
	    <label class="layui-form-label">短信模板：</label>
	    <div class="layui-input-inline">
	    	<input type="text" name="templateCode" required lay-verType="tips" lay-verify="required" placeholder="请输入阿里云短信模板主键" autocomplete="off" class="layui-input" maxlength="20" style="width:200px;" />
	    </div>
	  </div>
	  
	  <hr>
	  
	  <div class="layui-form-item layui-form-text">
	    <label class="layui-form-label">短信内容：</label>
	    <div class="layui-input-inline">
	    	<textarea name="content" placeholder="请输入短信模板内容" class="layui-textarea" required lay-verType="tips" lay-verify="required" style="width:400px;"></textarea>
	    </div>
	  </div>
	  
	  <hr>
	  
	  <div class="layui-form-item">
	  	<label class="layui-form-label">短信回执：</label>
	    <div class="layui-input-inline">
	    	<input type="text" name="outId" placeholder="（可以为空）短信回执消息" autocomplete="off" class="layui-input" maxlength="32" />
	    </div>
	    
	    <label class="layui-form-label">状态：</label>
	    <div class="layui-input-inline">
	      <c:choose>
    		<c:when test="${not empty bean }">
    			<input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" value="0" {{bean.status == 0 'checked' : ''}} />
    		</c:when>
    		<c:otherwise>
    			<input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" value="0" checked />
    		</c:otherwise>
	      </c:choose>
	    </div>
	  </div>
	  
	  <hr/>
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">模板通道：</label>
	    <div class="layui-input-inline">
	    	<select name="accessKeyId" class="fsSelect fsDict" isLoad="1" dict="smsConfigList" addNull="1" lay-verify="required"></select>
	    </div>
	  </div>
	  
	  <hr/>
	  
	  <div class="layui-form-item layui-form-text">
	    <label class="layui-form-label">描述说明：</label>
	    <div class="layui-input-inline">
	    	<input type="text" name="notice" placeholder="（可以为空）请输入描述说明" autocomplete="off" class="layui-input" maxlength="100" style="width:400px;" />
	    </div>
	  </div>
	  
	  <hr>
	  
	  <div class="layui-form-item" style="text-align: center;">
	  	 <button class="layui-btn" lay-submit="" lay-filter="${empty bean ? 'save' : 'edit' }" url="${ctx }/sms/temp/add"><i class="layui-icon">&#xe642;</i>${empty bean ? '新增' : '编辑' }</button>
     	 <button type="button" class="layui-btn layui-btn-primary" function="close">关闭</button>
   	  </div>
  
	</form>
</div>
	
<%@ include file="/WEB-INF/common/bottom.jsp"%>